package com.ceres.login.feign;

import com.ceres.login.pojo.Admin;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(name = "login")
public interface AdminFeign {
    @GetMapping("/admin/load/{username}")
    public Admin findUserInfo(@PathVariable("username") String username);
    //账号被锁定
//    @GetMapping("/admin/edit/{username}")
//    public void editAdminStatus(@PathVariable("username") String username);
//    @GetMapping("/admin/findRoleByUsername/{username}")
//    public List<Integer> findRoleByUsername(@PathVariable("username") String username);
}
